package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;
import com.youi.model.BankcardData;

import java.io.Serializable;


/**
 * 银行卡验证记录
 * @author XJY
 */
public class Bankcardrecord implements Serializable {

	private Long id;							//id
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private String name;					    //姓名
	private String idNum;					    //身份证号码
	private String cardNo;					    //银行卡号
	private String orderNo;					    //业务唯一流水号
	private String handleTime;				    //查询时间
	private String result;					    //认证结果代码。01:认证一致 02:认证不一致 03:认证不确定 04:认证失败 
	private String bankName;					//01 02的代码收费，其他不收费
	private String cardType;					//银行卡所属银行
	private String cardCategory;				//银行卡类型
	private String remark;						//银行卡类别

    public Bankcardrecord(){

    }

    public Bankcardrecord(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Bankcardrecord(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,String name,String idNum,String cardNo,String orderNo,String handleTime,String result,String bankName,String cardType,String cardCategory,String remark) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.name=name;
       this.idNum=idNum;
       this.cardNo=cardNo;
       this.orderNo=orderNo;
       this.handleTime=handleTime;
       this.result=result;
       this.bankName=bankName;
       this.cardType=cardType;
       this.cardCategory=cardCategory;
       this.remark=remark;
    }
    
    public Bankcardrecord(String name,String idNum,String cardNo,BankcardData bankcardData) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.name=name;
        this.idNum=idNum;
        this.cardNo=cardNo;
        this.orderNo=bankcardData.getOrderNo();
        this.handleTime=bankcardData.getHandleTime();
        this.result=bankcardData.getResult();
        this.bankName=bankcardData.getBankName();
        this.cardType=bankcardData.getCardType();
        this.cardCategory=bankcardData.getCardCategory();
        this.remark=bankcardData.getReamrk();
     }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setName(String name){
		this.name=name;
	}

	public String getName(){
		return name;
	}

	public void setIdNum(String idNum){
		this.idNum=idNum;
	}

	public String getIdNum(){
		return idNum;
	}

	public void setCardNo(String cardNo){
		this.cardNo=cardNo;
	}

	public String getCardNo(){
		return cardNo;
	}

	public void setOrderNo(String orderNo){
		this.orderNo=orderNo;
	}

	public String getOrderNo(){
		return orderNo;
	}

	public void setHandleTime(String handleTime){
		this.handleTime=handleTime;
	}

	public String getHandleTime(){
		return handleTime;
	}

	public void setResult(String result){
		this.result=result;
	}

	public String getResult(){
		return result;
	}

	public void setBankName(String bankName){
		this.bankName=bankName;
	}

	public String getBankName(){
		return bankName;
	}

	public void setCardType(String cardType){
		this.cardType=cardType;
	}

	public String getCardType(){
		return cardType;
	}

	public String getCardCategory() {
		return cardCategory;
	}

	public void setCardCategory(String cardCategory) {
		this.cardCategory = cardCategory;
	}

	public void setRemark(String remark){
		this.remark=remark;
	}

	public String getRemark(){
		return remark;
	}

}
